package com.situ.mianXiangDuiXiang.entity;

public class CPUobj {

    private String name;
    private Integer speed;

    public Double sum(Double num1,Double num2){
        return num1+num2;
    }

    /**
     * 两数的差
     * @param num1 减数
     * @param num2 被减数
     * @return
     */
    public Double odd(Double num1,Double num2){
        return num1-num2;
    }

    public CPUobj() {
    }

    public CPUobj(String name, Integer speed) {
        this.name = name;
        this.speed = speed;
    }


}
